/*
 * \brief  Lay back and relax
 * \author Norman Feske
 * \date   2006-07-19
 */

/*
 * Copyright (C) 2006-2009 Norman Feske
 * Genode Labs, Feske & Helmuth Systementwicklung GbR
 *
 * This file is part of the Genode OS framework, which is distributed
 * under the terms of the GNU General Public License version 2.
 */

#ifndef _INCLUDE__BASE__SLEEP_H_
#define _INCLUDE__BASE__SLEEP_H_

#include <base/ipc.h>

namespace Genode {

	inline void sleep_forever()
	{
		Msgbuf<16> buf;
		Ipc_istream is(&buf);
		while (1) is >> IPC_WAIT;
	}
}

#endif /* _INCLUDE__BASE__SLEEP_H_ */
